import request from '@/utils/request'

// 查询预约管理列表
export function listReservationmanagement(query) {
  return request({
    url: '/reservationmanagement/reservationmanagement/list',
    method: 'get',
    params: query
  })
}

// 查询预约管理详细
export function getReservationmanagement(reservationId) {
  return request({
    url: '/reservationmanagement/reservationmanagement/' + reservationId,
    method: 'get'
  })
}

// 新增预约管理
export function addReservationmanagement(data) {
  return request({
    url: '/reservationmanagement/reservationmanagement',
    method: 'post',
    data: data
  })
}

// 修改预约管理
export function updateReservationmanagement(data) {
  return request({
    url: '/reservationmanagement/reservationmanagement',
    method: 'put',
    data: data
  })
}

// 删除预约管理
export function delReservationmanagement(reservationId) {
  return request({
    url: '/reservationmanagement/reservationmanagement/' + reservationId,
    method: 'delete'
  })
}
